import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import axios from 'axios'

// 引用
import plugins from 'utils/plugins'
import EventProxy from 'vue-event-proxy'
import VueWechatTitle from 'vue-wechat-title'
import 'element-ui/lib/theme-chalk/index.css';
import ElementUI from 'element-ui';
Vue.use(ElementUI);

// 文件引用
import 'utils/import'

Vue.use(plugins)
Vue.use(EventProxy)
Vue.use(VueWechatTitle)

Vue.config.productionTip = false
Vue.prototype.$ELEMENT = {
  size: 'mini',
  zIndex: 2000
}

let date = new Date().getTime()
axios.get(`config.json?vison=${date}`).then(res => {
  Vue.prototype.config = res

  new Vue({
    router,
    store,
    render: h => h(App),
  }).$mount('#app')
})
